import request from '@/utils/request'

// 增
export function add(data) {
  return request({
    url: '/system/sysStore/add',
    method: 'post',
    data
  })
}

// 查
export function pageList(data) {
  return request({
    url: '/system/sysStore/pageList',
    method: 'post',
    data
  })
}

// 根据id查询
export function getById(id) {
  return request({
    url: '/system/sysStore/getById/' + id,
    method: 'get',
  })
}

// 改
export function updateById(data) {
  return request({
    url: '/system/sysStore/updateById',
    method: 'post',
    data
  })
}

// 删
export function deleteById(id) {
  return request({
    url: '/system/sysStore/deleteById/' + id,
    method: 'post',
  })
}

